package com.dmap.community.po;

import java.io.Serializable;

public class ThemeCollect implements Serializable {
    /**
     * 主键
     * 表字段 : community_theme_collect.id
     */
    private Long id;

    /**
     * 帖子主键
     * 表字段 : community_theme_collect.theme_id
     */
    private Long themeId;

    /**
     * 收藏用户id
     * 表字段 : community_theme_collect.user_id
     */
    private Long userId;

    /**
     * 记录时间
     * 表字段 : community_theme_collect.createTime
     */
    private Long createtime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table community_theme_collect
     *
     * @mbggenerated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table community_theme_collect
     *
     * @mbggenerated
     */
    public ThemeCollect(Long id, Long themeId, Long userId, Long createtime) {
        this.id = id;
        this.themeId = themeId;
        this.userId = userId;
        this.createtime = createtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table community_theme_collect
     *
     * @mbggenerated
     */
    public ThemeCollect() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column community_theme_collect.id
     *
     * @return the value of community_theme_collect.id
     *
     * @mbggenerated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column community_theme_collect.id
     *
     * @param id the value for community_theme_collect.id
     *
     * @mbggenerated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column community_theme_collect.theme_id
     *
     * @return the value of community_theme_collect.theme_id
     *
     * @mbggenerated
     */
    public Long getThemeId() {
        return themeId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column community_theme_collect.theme_id
     *
     * @param themeId the value for community_theme_collect.theme_id
     *
     * @mbggenerated
     */
    public void setThemeId(Long themeId) {
        this.themeId = themeId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column community_theme_collect.user_id
     *
     * @return the value of community_theme_collect.user_id
     *
     * @mbggenerated
     */
    public Long getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column community_theme_collect.user_id
     *
     * @param userId the value for community_theme_collect.user_id
     *
     * @mbggenerated
     */
    public void setUserId(Long userId) {
        this.userId = userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column community_theme_collect.createTime
     *
     * @return the value of community_theme_collect.createTime
     *
     * @mbggenerated
     */
    public Long getCreatetime() {
        return createtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column community_theme_collect.createTime
     *
     * @param createtime the value for community_theme_collect.createTime
     *
     * @mbggenerated
     */
    public void setCreatetime(Long createtime) {
        this.createtime = createtime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table community_theme_collect
     *
     * @mbggenerated
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", themeId=").append(themeId);
        sb.append(", userId=").append(userId);
        sb.append(", createtime=").append(createtime);
        sb.append("]");
        return sb.toString();
    }
}